/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.me.nicefotoappcamp.app;

import android.content.Context;
import android.graphics.BitmapFactory;
import android.widget.ImageView;
import java.io.ByteArrayInputStream;
import org.me.nicefotoappcamp.core.Picture;

/**
 *
 * @author Tadas
 */
public class NeuPhotoFrame extends ImageView {

    public NeuPhotoFrame(Context context){
        super(context);        
    }

    public void setPhoto(Picture photo){
        setImageBitmap(BitmapFactory.decodeStream(new ByteArrayInputStream(photo.getPictureBytes())));
    }

}
